.demo3{
  position: relative;
  width: 400px;
  height: 400px;
  background-color: red;
}
.box{
  width: 40px;
  height: 40px;
  background-color: #fff;
}